law unto oneself

A person who is totally independent, especially one who ignores established rules. For example, You can't tell Marge how to punctuate; she's a law unto herself. [ Second half of 1800s ]